<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!doctype html>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>添加任务</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<jsp:include page="/WEB-INF/views/common.jsp"></jsp:include>
	<script type="text/javascript" src="<%=path%>/resources/script/proms/task/task_add.js"></script>

  </head>
  
  <body>
    <div class="easyui-layout" fit="true">
   		<div region="center" border="false">
			<form id="form" method="post">
				<input id="id" name="id" type="hidden" value="${task.id }" />
				<input id="isTaskPlan" name="isTaskPlan" type="hidden" value="${isTaskPlan }" />
				<table class="edit-table">
					<tr>
						<th>所属指标：</th>
						<td>
							<input id="projectIndexId" name="projectIndexId" value="${task.projectIndexId }" class="easyui-validatebox" style="width: 250px;" />
							<input id="pId_clear_btn" name="pId_clear_btn" type="button" value="清空" style="width: 50px;"/>
						</td>
					</tr>
					<tr>
						<th>任务主题：</th>
						<td>
							<input type="text" id="name" name="name" value="" class="easyui-validatebox edit-input" style="width: 250px;" />
						</td>
					</tr>
					<tr>
						<th>计划完成时间段：</th>
						<td>
							<input type="text" id="startTime" name="startTime" style="width : 140px !important"
							onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
							class="Wdate easyui-validatebox" />～<input type="text" id="endTime" name="endTime"
							onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" style="width : 140px !important"
							class="Wdate easyui-validatebox" /></td>
					</tr>
					<tr>
						<th>资金来源</th>
						<td id="fund_sources_td"></td>
					</tr>
					<tr>
						<th>计划使用资金：</th>
						<td>
							￥ <input id="planAmount" name="planAmount" value="" class="easyui-numberbox" style="width:230px" />
						</td>
					</tr>
					<tr>
						<th>任务描述：</th>
						<td><textarea id="remark" name="remark" class="easyui-validatebox" style="width: 300px;height: 80px;"></textarea></td>
					</tr>
					<tr> 
					    <th>相关参与人：</th>
					    <td>
							<input type="hidden" name="taskActorIds" id="taskActorIds"/>
							<input type="text" name="taskActorNames" id="taskActorNames" class="edit-input" readonly="readonly" style="width: 400px !important;"/>
							<a id="userDiv_a" href="javascript:selectUser('taskActorIds', 'taskActorNames', 'selectByRole');"
							 class="easyui-linkbutton" data-options="iconCls:'icon-detail'">选择参与人</a>
					    </td>
				   	</tr>
				   	<tr id="task_plan_tr">
				   		<th>任务计划：</th>
				   		<td>
				   			<div style="width: 99%;">
				   				<div style="display: none" id="hide_task_plan_ids"></div>
				   				<table id="dg"></table>
				   				<div id="tb" style="height: auto;">
							    	<div style="margin-bottom: 3px; text-align: right;">
							    		<a href="javascript:void(0);" id="detail" class="easyui-linkbutton" title="查看" iconCls="icon-detail" plain="true">查看</a>
							    		<a href="javascript:void(0);" id="add" class="easyui-linkbutton" title="添加" iconCls="icon-add" plain="true">新增</a>
							    		<a href="javascript:void(0);" id="edit" class="easyui-linkbutton" title="修改" iconCls="icon-edit" plain="true">修改</a>
							    		<a href="javascript:void(0);" id="remove" class="easyui-linkbutton" title="删除" iconCls="icon-remove" plain="true">删除</a>
							    	</div>
							    </div>
				   			</div>
				   		</td>
				   	</tr>
					<tr>
						<th>预佐证材料：</th>
						<td><div id="_fileupload"></div></td>
					</tr>
					<!-- <tr>
						<th>是否使用任务审批</th>
						<td>
							<input type="checkbox" name="is_workflow" value="0" id="workflow_no"><label for="workflow_no">否</label>
							<input type="checkbox" name="is_workflow" value="1" id="workflow_yes"><label for="workflow_yes">是</label>
							<input id="workflowIds" name="workflowIds" class="easyui-validatebox" style="width: 150px;" />
						</td>
					</tr> -->
					<%-- <tr>
						<th>下一环节：</th>
						<td>${node.nodeName }<input type="hidden" name="nextNodeName" id="nextNodeName" value="${node.nodeId }" ></td>
					</tr>
					<tr>
						<th>选择办理人：</th>
						<td>
							<input type="hidden" name="userIds" id="userIds"/>
							<input type="text" name="userNames" id="userNames" class="must-input" readonly="readonly" style="width: 250px !important;"/>
							<a id="userDiv_a" href="javascript:selectUser('userIds', 'userNames', 'task');" class="easyui-linkbutton" data-options="iconCls:'icon-detail'">选择办理人</a>
						</td>
					</tr> --%>
				</table>
			</form>
   		</div>
   		<div region="south" border="false" style="text-align: right; height: 35px; line-height: 8px; padding:5px 5px 0 0;">
   			<a id="btnSave" class="easyui-linkbutton" icon="icon-ok" href="javascript:void(0);">确定</a>
   			<a id="btnCancel" class="easyui-linkbutton" icon="icon-cancel" href="javascript:void(0);">取消</a>
   		</div>
   	</div>
  </body>
</html>
